package com.hw.paltfrom.controller.mainscreen;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hw.paltfrom.service.casemain.StationInfoDetailServer;

@RestController
@RequestMapping(value = "/StationInfoDetail")
public class StationInfoDetailController {
	@Autowired
	private StationInfoDetailServer server;
	
	@RequestMapping(value = "/queryStationInfo")
	public Map<String, Object> queryStations(String stationCode) {
		return server.queryStationInfo(stationCode);
	}
	@RequestMapping(value = "/queryEnterpriseInfo")
	public Map<String, Object> queryEnterpriseInfo(String enterpriseCode) {
		return server.queryEnterpriseInfo(enterpriseCode);
	}
	@RequestMapping(value = "/queryOffsiteInfo")
	public Map<String, Object>  queryOffsiteInfo(String offsiteCode) {
		return server.queryOffsiteInfo(offsiteCode);
	}
	@RequestMapping(value = "/queryStationData")
	public Map<String, Object> queryStationData(String stationCode) {
		return server.queryStationData(stationCode);
	}
	@RequestMapping(value = "/queryEnterPriseData")
	public Map<String, Object> queryEnterPriseData(String enterpriseCode) {
		return server.queryEnterPriseData(enterpriseCode);
	}
	@RequestMapping(value = "/queryOffsiteData")
	public Map<String, Object> queryOffsiteData(String offsiteCode) {
		return server.queryOffsiteData(offsiteCode);
	}
}
